<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>代码测试</title>
</head>
<body>
   <script>
    
   function showresult(flag,flag2,flag3) {
      let arr=[];
      Number(flag) && arr.push('理财');
      Number(flag2) && arr.push('电票');
      Number(flag3) && arr.push('电子银行');
      return arr.join('、');
     }

     let str = showresult('1','0','2');
console.log(str);

//     if (Number('0')) {
//     console.log(" true");
// } else {
//     console.log("false");  // 这行代码会被执行
// }

let arr1 = [1,2,3];
// let arr2 = arr1.map((item)=>{
//    item=item+3;
//    return item;
// })
let arr2 = arr1.map((item)=>{
   
   return item+3;
})
console.log('arr2',arr2);

let a = 1 && 2;
console.log('aaa',a);

let brr1 = [1,2,3];
let brr2 = brr1;
console.log('brr2',brr2);

let aaa = {
   a:1,
   a:2
}
console.log('aaa',aaa);

log
   </script> 
</body>
</html>